package com.czz.portal.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.czz.portal.entity.Course;
import com.czz.portal.entity.Period;
import com.czz.portal.query.CourseQuery;
import com.czz.portal.vo.CourseVo;
import com.czz.portal.vo.PeriodVo;
import com.czz.portal.vo.VideoVo;

import java.util.List;

/**
 * @ClassName: CourseService
 * @Author Czz
 * @Date 2020/2/6
 * @Time 13:22
 **/
public interface CourseService extends IService<Course> {
    List<Course> getRecommendCourseList();
    List<Course> getNewCourseList();
    List<Course> getGuideCourseList();
    List<Course> getImproveCourseList();
    List<Course> getTechnologyCourseList();
    CourseVo getCourseDetailById(String id);
    List<CourseVo> getRecommendCourseListById(String id);
    void getCoursePageList(Page<Course> pageParam, CourseQuery courseQuery);
    Period getPeriodByPeriodId(String id);
    Boolean getCourseIsFree(String id);
    PeriodVo getPeriodByVideoId(String id);
    List<VideoVo> getPeriodVideoByVideoId(String id);
}
